import styled from 'styled-components'

export const HeaderWrapper = styled.div`
 font-size: 14px;
 height: 75px;
 background-color: #242424;

 .content {
   height: 70px;

   display: flex;
   justify-content: space-between;
 }

 .divider {
   height: 5px;
   background-color: #c20c0c;
 }
`

export const HeaderLeft = styled.div`
  display: flex;

  .logo {
    display: block;
    width: 176px;
    height: 69px;
    background-position: 0 0;
  }

  .select-list {
    display: flex;
    line-height: 70px;

    .select-item {
      position: relative;
      a {
        color: #ccc;
        padding: 0 20px;
        display: block;
      }

      &:hover a, a.active {
        color: #fff;
        background-color: #000;
        text-decoration: none;
      }

      /* a元素被选中，默认就会有active */
      .active .icon {
        position: absolute;
        display: inline-block;
        width: 12px;
        height: 7px;
        bottom: -1px;
        left: 50%;
        transform: translate(-50%, 0);
        background-position: -226px 0;
      }

      :last-of-type a {
        position: relative;
        ::after {
          content: "";
          position: absolute;
          top: 21px;
          right: -15px;
          width: 28px;
          height: 19px;
          background-position: -190px 0;
          background-image: url(${require("@/assets/img/sprite_01.png")});
        }
      }
    }



  }
`

export const HeaderRight = styled.div`
  display: flex;
  align-items: center;
  font-size: 12px;
  color: #ccc;

  .search {
    width: 158px;
    height: 32px;
    border-radius: 16px;

    input {
      &::placeholder {
        font-size: 12px;
      }
      &:focus::-webkit-input-placeholder {
        color: transparent;
      }
    }
  }

  .center {
    color: #ccc;
    width: 90px;
    height: 32px;
    line-height: 32px;
    border: 1px solid #666;
    text-align: center;
    margin: 0 16px;
    border-radius: 16px;

    &:hover {
      text-decoration: none;
      border-color: #ccc;
      color: #fff;
    }
  }

  .login {
    color: #666;
    &:hover {
      text-decoration: underline;
      color: #787878;
      cursor: pointer;
    }
  }
  }
`